package com.itheima.aspect.order;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;
@Slf4j
@Component
@Aspect
public class MyAspect5 {

    @Before("@annotation(com.itheima.aspect.annotation.LogOperation)")
    public void before(){
        log.info("MyAspect5->before()");
    }

    @After("@annotation(com.itheima.aspect.annotation.LogOperation)")
    public void after(){
        log.info("MyAspect5->after()");
    }
}
